STIME

Section: MINTLIB LIBRARY FUNCTIONS (3)
Updated: 3 March 1993
Index Return to Main Contents
 

NAME

stime - set time  

SYNOPSIS

#include <unistd.h>

int stime(long *tp);
 

DESCRIPTION

stime sets the system's idea of the time and date. tp points to the value of time as measured in seconds from 00:00:00 GMT January 1, 1970.  

SEE ALSO

time(3), Tsetdate(2), Tsettime(2)  

RETURN VALUES


 0 on success. -1 on failure; errno is set to indicate the error.  

NOTE

On UN*X, only the super-user may call this function. Under the current version of MiNT and using the current version of the mintlibs, any user is allowed to change the system time. Don't rely on this behavior, as it will be changed in the future.
 

Index

NAME
SYNOPSIS
DESCRIPTION
SEE ALSO
RETURN VALUES
NOTE

This document was created by man2html, using the manual pages.
Time: 11:14:55 GMT, June 22, 2025